#pragma once
class BackBuffer;
#include <windows.h>

class RenderWindow
{
public:
	RenderWindow();
	~RenderWindow();
	
	int getWidth() const { return mWidth; }
	int getHeight() const { return mHeight; }

	bool Init();
	void Exit();
	void Update();

	void OnRenderInited();
	void OnWindowResized(int widht, int height);

	HWND getWnd() const;

	void setCamera(Camera* cam);
	Camera* getCamera();

private:
	HWND mWnd;
	HINSTANCE mInstance;
	Camera* mCamera;
	int mWidth;
	int mHeight;
	BackBuffer* mBackBuffer;
};


inline HWND RenderWindow::getWnd() const 
{
	return mWnd; 
}

inline void RenderWindow::setCamera(Camera* cam)
{
	mCamera = cam;
}

inline Camera* RenderWindow::getCamera()
{
	return mCamera;
}